package org.nvm.dic;

import java.util.HashMap;
import java.util.Map;

public class DictCharFrequencyNode {

	private static final Map<Character, Float> charFrequencyMap = new HashMap<>(1024, 0.8F);
	
	void addCharFrequency(Character ch, float freq) {
		charFrequencyMap.put(ch, freq);
	}
	
	float getCharFrequency(Character singleChar) {
		Float freq = charFrequencyMap.get(singleChar);
		if(freq == null) {
			return -1;
		}
		return freq;
	}
}
